<template>
	<div class="count-sales">
		<div class="card">
			<div class="card__header">
				<span class="label">{{ $t('总用户数') }}</span>
			</div>

			<div class="card__container">
				<cl-number :value="data.user" class="num" />


			</div>


		</div>
	</div>
</template>

<script lang="ts" setup>
import { TopRight } from '@element-plus/icons-vue';
import { random } from 'lodash-es';
import { onMounted, ref } from 'vue';

const num = ref(0);

onMounted(() => {
	num.value = random(100000);
});

const props = defineProps({
	data: {
		type: Object,
		default: {}
	}
});



</script>

<style lang="scss" scoped>
.count-sales {

	.fall,
	.rise {
		display: inline-flex;
		align-items: center;
		margin-left: 10px;
	}

	.fall {
		color: var(--el-color-success);
	}

	.rise {
		color: var(--el-color-danger);
	}
}
</style>
